﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace Assets.Scripts.UI
{
    [RequireComponent(typeof(Text))]
    public class AutoTxtChange : MonoBehaviour
    {
        [SerializeField]
        private Text m_text;
        void Start()
        {
            m_text = GetComponent<Text>();
        }

        public void ChangeTextByFloat(float val)
		{
            m_text.text = val.ToString();
		}
    }
}
